package bat.iog.hytool.pattern.creator.builder.demo;/*
package iog.hytool.pattern.builder.demo;

import java.io.Serializable;

*/
/**
 * QueryRule,主要功能用于构造查询条件
 *//*

public final class QueryRule implements Serializable {
    
    
    */
/**
     * 添加升序规则
     * @param propertyName
     * @return
     *//*

    public QueryRule addAscOrder(String propertyName) {
        this.ruleList.add(new Rule(ASC_ORDER, propertyName));
        return this;
    }

    public QueryRule andEqual(String propertyName, Object value) {
        this.ruleList.add(new Rule(EQ, propertyName, new Object[] { value }).setAndOr(AND));
        return this;
    }

    public QueryRule andLike(String propertyName, Object value) {
        this.ruleList.add(new Rule(LIKE, propertyName, new Object[] { value }).setAndOr(AND));
        return this;
    }
}*/
